// 19.55
function cutRope(number)
{
    // write code here
    var dp = new Array(number+1).fill(0)
    for(let i = 2;i <= number;i ++){
      for(let j = 1;j < i;j++){
        var max = j*dp[i-j] > j*(i-j) ?  j*dp[i-j] : j*(i-j)
        dp[i] = dp[i] > max ? dp[i] : max
      }
    }
    return dp[number]
}
module.exports = {
    cutRope : cutRope
};